package com.project.bean;

import java.time.LocalDate;

/**
 * 设施实体类
 */
public class FacilityBean {
    /**
     * 设施记录编号
     */
    private Integer facilityId;
    /**
     * 损坏描述
     */
    private String description;
    /**
     * 损坏日期
     */
    private LocalDate damageDate = LocalDate.now();
    /**
     * 解决状态
     */
    private String solved="未处理";

    /**
     * 所属房间编号
     */
    private Integer roomId;

    public FacilityBean() {
    }

    public FacilityBean(String description) {
        this.description = description;
    }

    public Integer getFacilityId() {
        return facilityId;
    }

    public void setFacilityId(Integer facilityId) {
        this.facilityId = facilityId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public LocalDate getDamageDate() {
        return damageDate;
    }

    public void setDamageDate(LocalDate damageDate) {
        this.damageDate = damageDate;
    }

    public String getSolved() {
        return solved;
    }

    public void setSolved(String solved) {
        this.solved = solved;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    @Override
    public String toString() {
        return "FacilityBean{" +
                "facilityId=" + facilityId +
                ", description='" + description + '\'' +
                ", damageDate=" + damageDate +
                ", solved='" + solved + '\'' +
                ", roomId=" + roomId +
                "}\n";
    }
}
